package cn.com.dingtek.genius.manager.server.repository.db.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AppVersion {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 版本名称
     */

    private String versionName;

    /**
     * 版本号
     */

    private Integer versionCode;

    /**
     * 文件路径
     */

    private String filePath;

    /**
     * 系统类型0安卓1苹果
     */

    private Integer osType;

    /**
     * sign密码
     */

    private String signPwd;

    /**
     * 项目分类1:DF702,2齐河
     */

    private String project;

    /**
     * 描述
     */

    private String remark;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ctime;

    @Version
    private Integer version;
}
